//
//  Tools.swift
//  GroupApp
//
//  Created by 语安 on 16/8/15.
//  Copyright © 2016年 thls.com. All rights reserved.
//

import Foundation
import UIKit

let screenWidth = UIScreen.mainScreen().bounds.size.width
let screenHeight = (UIScreen.mainScreen().bounds.size.height - 64)//优先级

//给UIColor添加一个扩展方法
extension UIColor {
    
    static func RGBA(red: CGFloat, _ green: CGFloat, _ blue: CGFloat, _ alpha: CGFloat = 1) -> UIColor {
        return UIColor(red: red / 255.0, green: green / 255.0, blue: blue / 255.0, alpha: alpha)
    }
    
}